package com.xinruke.hostels.reservation.user.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 会员密码修改
 *
 * @author Jinz
 * @date 2019-06-30 12:13
 */
@ApiModel("会员密码修改")
@Data
public class MemberPassWordUpdateDTO {
    /**
     * 旧密码
     */
    @ApiModelProperty(value = "旧密码", required = true)
    @NotBlank(message = "旧密码")
    private String oldPwd;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码", required = true)
    @NotBlank(message = "新密码")
    private String newPwd;
}
